package com.xq.spring.postprocess.container;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.xq.spring.beans.Person;

/**
 * 测试容器后处理器的测试类.
 * @author 郭凯强
 */
public class ApplicationContextBF {
	public static void main(String[] args) {
		@SuppressWarnings("resource")
		ApplicationContext ctx=new ClassPathXmlApplicationContext("cfg-postprocess-container.xml");
		Person person=(Person) ctx.getBean("chinese");
		person.useAxe();
	}
}
